package com.yaj.myfactorysupport.controller;


import com.yaj.myfactorysupport.entity.TLotTraceTemp;
import com.yaj.myfactorysupport.service.TLotTraceTempService;
import com.yaj.myfactorysupport.util.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wei
 * @since 2021-05-25
 */
@Api(tags = "TLotTraceTempController")
@RestController
@RequestMapping("/myfactorysupport/t-lot-trace-temp")
public class TLotTraceTempController {
    @Autowired
    private TLotTraceTempService tLotTraceTempService;

    @ApiOperation(value = "批号临时保存")
    @PostMapping(value = "insertTLotTraceTemp")
    public RespBean insertTLotTraceTemp(@RequestBody List<TLotTraceTemp> tLotTraceTemps){
        return tLotTraceTempService.insertTLotTraceTemp(tLotTraceTemps);
    }
}

